const radius='70%';//4个饼状图的大小
// 中间
export const optionFirst = {
  tooltip: {
    trigger: 'item'
  },
  series: [
    {
      name: '一级图层',
      type: 'pie',
      radius: '80%',
      data: [
        { value: 1, name: '岗位' },
        { value:1, name: '状态' },
        { value: 1, name: '学历' },
        { value: 1, name: '分布地' },
      ],
      emphasis: {
        itemStyle: {
          shadowBlur: 10,
          shadowOffsetX: 0,
          shadowColor: 'rgba(0, 0, 0, 0.5)'
        }
      }
    }
  ]
};
export const optionSecond={
  tooltip: {
    trigger: 'item'
  },
  series: [
    {
      name: '分析图表',
      type: 'pie',
      radius: ['40%', '100%'],
      avoidLabelOverlap: false,
      itemStyle: {
        borderRadius: 10,
        borderColor: '#fff',
        borderWidth: 2
      },
      label: {
        show: false,
        position: 'center'
      },
      emphasis: {
        label: {
          show: true,
          fontSize: '40',
          fontWeight: 'bold'
        }
      },
      
      labelLine: {
        show: false
      },
      data: [
        { value: 1, name: '学历' },
        { value:1, name: '状态' },
        { value: 1, name: '岗位' },
        { value: 1, name: '分布地' },
      ]
    }
  ]
}
// 岗位
export const optionPost={
  color:['#003399','#FFCCCC','#6699CC'],
  title: {
    text: '员工岗位分布图',
    left: 'center'
  },
  tooltip: {
    trigger: 'item'
  },
  legend: {
    orient: 'vertical',
    left: 'left'
  },
  series: [
    {
      name: '员工岗位',
      type: 'pie',
      radius: radius,
      data: [
        { value: 1048, name: '数据分析' },
        { value: 735, name: '后端' },
        { value: 580, name: '前端' },
      ],
      emphasis: {
        itemStyle: {
          shadowBlur: 10,
          shadowOffsetX: 0,
          shadowColor: 'rgba(0, 0, 0, 0.5)'
        }
      }
    }
  ]
}
// 状态
export const optionState={
    color:['#3399CC','#FFFF00','#FF6666'],
    title: {
      text: '员工状态分布图',
      left: 'center'
    },
    tooltip: {
      trigger: 'item'
    },
    legend: {
      orient: 'vertical',
      right:'0%'
    },
    series: [
      {
        name: '员工状态',
        type: 'pie',
        radius: radius,
        data: [
          
          { value: 580, name: '试用' },
          { value: 484, name: '正式' },
          { value: 300, name: '实习' }
        ],
        emphasis: {
          itemStyle: {
            shadowBlur: 10,
            shadowOffsetX: 0,
            shadowColor: 'rgba(0, 0, 0, 0.5)'
          }
        }
      }
    ]
}
// 学历
export const optionEducation={
  color:['#FFCC33','#FFFF33'],
  title: {
    text: '员工学历分布图',
    left: 'center'
  },
  tooltip: {
    trigger: 'item'
  },
  legend: {
    orient: 'vertical',
    right:'5%'
  },
  series: [
    {
      name: '员工学历',
      type: 'pie',
      radius: radius,
      data: [
        
        { value: 580, name: '本科' },
        { value: 484, name: '专科' },
      ],
      emphasis: {
        itemStyle: {
          shadowBlur: 10,
          shadowOffsetX: 0,
          shadowColor: 'rgba(0, 0, 0, 0.5)'
        }
      }
    }
  ]
}
// 地区
export const optionPlace={
  title: {
    text: '员工地区分布图',
    left: 'center'
  },
  tooltip: {
    trigger: 'item'
  },
  legend: {
    orient: 'vertical',
    left:'left',
  },
  series: [
    {
      name: '员工分布地',
      type: 'pie',
      radius: radius,
      data: [
        { value: 56, name: '山西' },
        { value: 63, name: '江西' },
         { value: 45, name: '内蒙古' },
        { value: 78, name: '贵州' },
         { value: 10, name: '甘肃' },
        { value: 66, name: '河北' },
        { value: 66, name: '黑龙江' },
      ],
      emphasis: {
        itemStyle: {
          shadowBlur: 10,
          shadowOffsetX: 0,
          shadowColor: 'rgba(0, 0, 0, 0.5)'
        }
      }
    }
  ]
}
 